// apiService.ts
import { ALLName } from '/@/api/basic/import/index';

export async function fetchData() {
  let result = await ALLName();
  result = result.filter((item) => item.id !== '1');
  const type = [];
  for (let i = 0; i < result.length; i++) {
    const arr = {
      label: result[i].name,
      value: result[i].id,
      key: i + 1,
    };
    type.push(arr);
  }
  return type;
}
